package kr.saeildamil.androidstudy.ch13;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;

public class AutoCompleteTest extends Activity {
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch13_autocomplete);
		ArrayAdapter<CharSequence> arWord = ArrayAdapter.createFromResource(this, R.array.words, android.R.layout.simple_dropdown_item_1line);
		
		AutoCompleteTextView autoEdit = (AutoCompleteTextView) findViewById(R.id.autoCompleteTextView1);
		
		autoEdit.setAdapter(arWord);
	}
}
